import request from '@/router/axios'

export function listPowerDevices(companyId) {
  return request({
    url: '/entrance-guard/api/power/listPowerDevices?companyId=' + companyId,
    method: 'get'
  })
}

export function powerToday(query) {
  return request({
    url: '/entrance-guard/api/power/powerToday',
    method: 'get',
    params: query
  })
}

export function powerDetail(query) {
  return request({
    url: '/entrance-guard/api/power/powerDetail',
    method: 'get',
    params: query
  })
}
